package top.tenebrous.yzl.chat.domain.member;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * @Classname MMemChatRecord
 * @Description TODO
 * @Date 2023/11/11 6:54 PM
 * @Created by zhangya
 */
/**
    * 聊天记录表
    */
@ApiModel(value="聊天记录表")
@Data
@TableName(value = "m_mem_chat_record")
public class MMemChatRecord implements Serializable {
    /**
     * 自增id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="自增id")
    private Long id;

    /**
     * 会员id
     */
    @TableField(value = "from_id")
    @ApiModelProperty(value="发送者id")
    private Long fromId;

    /**
     * 朋友id
     */
    @TableField(value = "to_id")
    @ApiModelProperty(value="接收者id")
    private Long toId;

    /**
     * 群组id
     */
    @TableField(value = "group_id")
    @ApiModelProperty(value="群组id")
    private Long groupId;

    /**
     * 聊天类型 1-私聊 2-公聊
     */
    @TableField(value = "chat_type")
    @ApiModelProperty(value="聊天类型 1-私聊 2-公聊")
    private Integer chatType;

    /**
     * 是否已读 0-否 1-是
     */
    @TableField(value = "enableRead")
    @ApiModelProperty(value="是否已读 0-否 1-是")
    private Integer enableread;

    /**
     * 发送时间
     */
    @TableField(value = "create_date")
    @ApiModelProperty(value="发送时间")
    private Date createDate;

    /**
     * 聊天记录
     */
    @TableField(value = "content")
    @ApiModelProperty(value="聊天记录")
    private String content;

    /**
     * 是否删除 0-否 1-是
     */
    @TableField(value = "is_delete")
    @ApiModelProperty(value="是否删除 0-否 1-是")
    private Integer isDelete;

    private static final long serialVersionUID = 1L;
}